from urllib3 import *

from re import *

import re

import os

import hashlib

import requests

from bs4 import BeautifulSoup

import bs4

for filename in os.listdir("D:\\文本版"):

with open("D:\\文本版\\"+filename) as f: #读取每个文件

for line in f.readlines(): #将每个文件文本同意逐行写入一个word中

with open("wenshuhedui/全部文书整理版.doc","a") as mom:

mom.write('\n'+line)